//
//  ClassItems.m
//  TextApplication
//
//  Created by dllo on 16/9/8.
//  Copyright © 2016年 yh. All rights reserved.
//

#import "ClassItems.h"
#import "ClassifySecond.h"

@implementation ClassItems

- (void)setValue:(id)value forKey:(NSString *)key {
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"second"]) {
        NSMutableArray *array1 = [NSMutableArray array];
        NSMutableArray *array2 = [NSMutableArray array];
        for (NSArray *array in value) {
            for (NSDictionary *dic in array) {
                ClassifySecond *sec = [ClassifySecond modelWithDic:dic];
                [array1 addObject:sec];
            }
            [array2 addObject:array1];
        }
        _second = array2;
    }
}


@end
